package com.niuwa.p2p.core.file;

import java.io.File;

import com.niuwa.p2p.entity.nwfile.NWFile;

public abstract class NWFileGenerator {

	public static NWFile publicNWFilegenerate(File file, String UUIDStr)
			throws Exception {
		NWFileBuilder builder = new PublciNWFileBuilder(file, UUIDStr);
		return builder.generateNWFile();
	}

	public static NWFile privateNWFilegenerate(File file, String UUIDStr)
			throws Exception {
		NWFileBuilder builder = new PrivateNWFileBuilder(file, UUIDStr);
		return builder.generateNWFile();
	}
}
